package com.leapp.sk.ui.activity.personal

import android.os.Bundle
import com.example.mvp.activity.BaseActivityMVP
import com.example.mvp.binder.BaseDataBinder
import com.leapp.sk.bean.ChoseClassEntity
import com.leapp.sk.bean.ClassIndexRand
import com.leapp.sk.binder.BaseBinder
import com.leapp.sk.viewdelegate.personal.ClassIndexDelegate

/**
 * 班级指数
 * @author  chaohaipeng  on 2018/8/14.
 */
class ClassIndexActivity:BaseActivityMVP<ClassIndexDelegate>(){
    override fun initDate() {
        val mutableListOf = mutableListOf<ClassIndexRand>()
        for (i in 1..2){
            mutableListOf.add(ClassIndexRand())
        }
        viewDelegate.initAdapter(this,mutableListOf)
        val className = mutableListOf<ChoseClassEntity>()
        for (i in 0..3){
            if(i==0){
                val choseClassEntity = ChoseClassEntity()
                choseClassEntity.isCheck=true
                className.add(choseClassEntity)
            }else{
                className.add(ChoseClassEntity())
            }

        }
        viewDelegate.initClassData(this,className)

    }

    override fun bindEvenListener() {
    }

    override fun getDelegateClass(): Class<ClassIndexDelegate> {
        return ClassIndexDelegate::class.java
    }

    override fun getDataBinder(): BaseDataBinder<*, *> {
        return BaseBinder()
    }

    override fun initView(p0: Bundle?) {
        viewDelegate.setTitle("等你下课1班")
    }
}